package com.unsins.test.batch;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.listener.StepListenerSupport;
import org.springframework.batch.repeat.ExitStatus;

/**
 * Created by IntelliJ IDEA.
 * User: odpsoft
 * Date: 2008-12-16
 * Time: 15:25:15
 */
public class JobLoggerListener extends StepListenerSupport {
    private static final Log logger = LogFactory.getLog(JobLoggerListener.class);

    public org.springframework.batch.repeat.ExitStatus afterStep(StepExecution stepExecution) {
        if (logger.isDebugEnabled())
            logger.debug("Total Amount Processed: ");

        return ExitStatus.FINISHED;
    }
}

